package park;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author 况祥彬
 * @date 2020/12/17 21:22
 **/
public class Car {
    private Integer carId;
    static ReentrantLock lock=new ReentrantLock();

    public Car(Integer carId){
        this.carId=carId;
    }

    public void getIn(){
        lock.lock();
        try {


        }finally {
            lock.unlock();
        }

    }

    public void  getOut(){

    }
}
